<template>
  <div class="app">
    <div class="title">搜索
      <div class="con">
     <i class="iconfont icon-tuige" @click="goBack"></i> </div>
     </div>
      <span>搜索</span>
      <input type="text">
      
      
    
      
<hr>
      <router-link to="/detail">我是搜索列表，点击去详情</router-link>
      <span>。。。</span><br>
      <router-link to="/detail">我是搜索列表，点击去详情</router-link>
      <span>。。。</span><br>
      <router-link to="/detail">我是搜索列表，点击去详情</router-link>
      <span>。。。</span>
  </div>
</template>

<script>
export default {
methods:{
  goBack(){
    this.$router.go(-1)
  }
}
}
</script>

<style scoped>
.title{
  position: relative;
}
.con{
  position: absolute;
  top: 0;
  color: #fff;
}
i{
  font-size: .6rem;
}
</style>